<?php
$config = array(
    "photodir" => "../", // Location of the folder containing your photos
    "thumbw" => "100", // Mac thumbnail width
    "thumbh" => "100", // Mac thumbnail height
    "name" => "loldongs", // Name of gallery
    "theme" => "milk", // Gallery theme. etc.
    "default" => "thumbs", //Default place to go.
    "ext" => array("jpg","jpeg","gif","png"), // Accepted extentions    
    "hide" => array(".svn","private", "secure"), // List of folders and files to hide.
    "mod_rewrite" => ".", // To enable the option, fill the space, to disable remove everything within the " and "
    "basedir" => "", // Used so the browser knows where to go, not required if you not using mod rewrite

// Do not modify below this line or I will throw a shoe at you and your firstborn!
	"url"	  => "http://svn.peppery9.net/listing.php?repname=Photo+Gallery&path=%2F&sc=0",
	"linkname" => "Photo Gallery - SVN",
	"version" => "1.00"
);

function user_input($str) {
return trim(stripslashes(strip_tags($_GET[$str]))); 
}

include('includes/smarty/Smarty.class.php');

$smarty = new Smarty;
$smarty->template_dir = 'includes/themes/'. $config['theme'];
$smarty->compile_dir = 'includes/smarty/compiledir';

$smarty->assign('name', $config['name']);
$smarty->assign('theme', $config['theme']);
if($config['basedir']){
$smarty->assign('basedir', $config['basedir']);
}
$smarty->assign('url', $config['url']);
$smarty->assign('linkname', $config['linkname']);
?>
